package com.itheima.health.service;

import com.itheima.health.pojo.Role;
import com.itheima.health.pojo.User;

import java.util.Set;

/**
 * @author spt
 * @description 用户服务接口
 * @date 2019/9/6
 **/
public interface UserService {

    /**
     * 根据用户名和密码登录
     * @param username
     * @return
     */
    User findByUsername(String username);

    Set<Role> getpermissions(User user);
}
